package com.icangya.DAO.impl;

import com.icangya.DAO.IFbCommentDAO;
import com.icangya.domain.FbComment;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class FbCommentDAOImpl extends BaseDAO<FbComment> implements IFbCommentDAO {


    @Override
    public List<FbComment> selectFbCommentsByMoodId(Long moodId) {

        String hql=" FROM FbComment fbcomment where fbcomment.moodId = ? ";

        List<FbComment> list = (List<FbComment>) getHibernateTemplate().find(hql,moodId);

        return list;
    }
}
